import request from '@/utils/request'

// post
export function postAction(url, parameter,config) {
	return request.post(url,parameter,{
		...config
	})
}

// put
export function putAction(url, parameter,config) {
	return request.put(url,parameter,{
		...config
	})
}

export function getAction(url, parameter,...config) {
  return request.get(url,{
		params: parameter,
		...config
	})
}

export function deleteAction(url, parameter,...config) {
  return request.delete(url,{
		params: parameter,
		...config
	})
}